package com.atguigu.guli.service.oss.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class OssProperties {

    private String scheme = "https://";
    private String endpoint = "oss-cn-shanghai.aliyuncs.com";
    private String accessKeyId = "accessKeyId";
    private String accessKeySecret = "WrtGq7BWZJ0FzBGhMgU2uCOpYv8g7a";
    private String bucketName = "sh-gulionline-imgs";

    public OssProperties() {
    }

    public OssProperties(String scheme, String endpoint, String accessKeyId, String accessKeySecret, String bucketName) {
        this.scheme = scheme;
        this.endpoint = endpoint;
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.bucketName = bucketName;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

}
